package util;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;

/**
 *
 * @author Lucas S Bueno
 */
public class PointFactory {

   private static GeometryFactory geoFactory;

   static {
      geoFactory = new GeometryFactory();
   }

   public static Point create(double x, double y) {
      Coordinate coordenada = new Coordinate(x, y);

      return geoFactory.createPoint(coordenada);
   }
}
